
#define buffer_size 1280
void setup(void){
  
  Serial.begin(115200);
}

unsigned char Av_Buffer[buffer_size];
unsigned long time;
void loop(void){
  fillBuffer(Av_Buffer, 255);
  time = millis();
  Serial.write((unsigned char *)Av_Buffer, sizeof(Av_Buffer));
  time = millis() - time;
  Serial.println(time,DEC);
  Serial.println("END");
  delay(2000);
}


void fillBuffer(unsigned char *Puc_Buffer,unsigned char vuc_dataToFill){
  int vi_index;
 for(vi_index = 0; vi_index < buffer_size ; vi_index++)
     *(Puc_Buffer + vi_index) = vuc_dataToFill; 
}
